<?php
/**
 * Created by PhpStorm.
 * User: man0sions
 * Date: 16/8/25
 * Time: 下午7:46
 */

namespace src\base;

/**
 * 一个共用的setter,getter,用于set,get全局数据共享
 *
 * Class Context
 * @package src\base
 */
class Context{
    private $params;

    /**
     * @param $key
     * @return mixed
     */
    function get($key)
    {
        return $this->params[$key];
    }

    /**
     * @param $key
     * @param $value
     */
    function set($key, $value)
    {
        $this->params[$key] = $value;
    }
}